﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<JumJob.Models.Job>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Publica un empleo
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Publica un nuevo empleo</h2>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        <fieldset>
            <legend>Datos del empleo</legend>
             <div class="editor-label">
               <label for="">Categoria</label>
            </div>
            <div class="editor-label">               
                <%=Html.DropDownList("category_id", (IEnumerable<SelectListItem>)ViewData["categorias"])%>
            </div>
            <div class="editor-label">
               <label for="">Descripci&oacute;n</label>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.description) %>
                <%: Html.ValidationMessageFor(model => model.description) %>
            </div>
            <div class="editor-label">
                <label for="">Presupuesto</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.budget) %>
                <%: Html.ValidationMessageFor(model => model.budget) %>
            </div>            
            <p>
                <input type="submit" value="Publicar" />
            </p>
        </fieldset>

    <% } %>

  
</asp:Content>

